<!-- 头部导航 -->
<nav class="common_header">
	<div class="container">
		<a class="logo" href="/">
			<img src="{{get_config_cache('logo')}}" onerror="this.src='{{ asset('images/logo.png') }}'" alt="Logo">
		</a>
		<?php $user = Auth::user()->load('frame');?>
		<ul class="lt_nav">
			@if(Auth::user()->hasAnyRole(['admin']) || (Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1))
				<li class="@if(request()->route()->getPrefix()=='/user') active @endif">
					<a href="@if(request()->route()->getName()=='user_index') javascript:; @else {{route('user_index')}} @endif">桌面</a>
				</li>
				<li class="@if(request()->route()->getPrefix()=='user/client') active @endif">
					<a href="@if(request()->route()->getName()=='client_all') javascript:; @else {{route('client_all')}} @endif">客户管理</a>
					<ul class="has-dropdown">
						<li>
							<a href="@if(request()->route()->getName()=='client_private') javascript:; @else {{route('client_private')}} @endif">我的客户</a>
						</li>
						<li>
							<a href="@if(request()->route()->getName()=='client_all') javascript:; @else {{route('client_all')}} @endif">所有客户</a>
						</li>
					</ul>
				</li>
				<li class="@if(request()->route()->getPrefix()=='user/channel') active @endif">
					<a href="@if(request()->route()->getName()=='recruit_list') javascript:; @else {{route('recruit_list')}} @endif">渠道管理</a>
					<ul class="has-dropdown">
						<li>
							<a href="@if(request()->route()->getName()=='recruit_list') javascript:; @else {{route('recruit_list')}} @endif">招聘渠道</a>
						</li>
						<li>
							<a href="@if(request()->route()->getName()=='part_list') javascript:; @else {{route('part_list')}} @endif">兼职渠道</a>
						</li>
					</ul>
				</li>
			@endif
			@if(Auth::user()->hasAnyRole(['admin']) || Auth::user()->type==2 || (Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1))
				<li class="@if(request()->route()->getPrefix()=='user/position') active @endif">
					<a href="@if(request()->route()->getName()=='position_self') javascript:; @else {{route('position_self')}} @endif">职位管理</a>
					<ul class="has-dropdown">
						<li><a href="@if(request()->route()->getName()=='position_self') javascript:; @else {{route('position_self')}} @endif">我的职位</a></li>
						@if(Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1)
							<li><a href="@if(request()->route()->getName()=='position_all') javascript:; @else {{route('position_all')}} @endif">所有职位</a></li>
						@endif
					</ul>
				</li>
			@endif
			@if(Auth::user()->hasAnyRole(['admin']) || Auth::user()->type==2 || (Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1))
				<li class="@if(request()->route()->getPrefix()=='user/resume') active @endif">
					<a href="@if(request()->route()->getName()=='resume_self') javascript:; @else {{route('resume_self')}} @endif">简历管理</a>
					<ul class="has-dropdown">
						<li><a href="@if(request()->route()->getName()=='resume_self') javascript:; @else {{route('resume_self')}} @endif">我的简历库</a></li>
						@if(Auth::user()->hasAnyRole(['admin']) || (Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1))
							<li><a href="{{route('resume_all')}}">公司简历池</a></li>
						@endif
					</ul>
				</li>
			@endif
			@if(Auth::user()->hasAnyRole(['admin']) || (Auth::user()->type==1 && $user->frame && $user->frame->branch_id==1))
				<li class="@if(request()->route()->getPrefix()=='user/data') active @endif">
					<a href="@if(request()->route()->getName()=='recommend_list') javascript:; @else {{route('recommend_list')}} @endif">数据报表</a>
					<ul class="has-dropdown">
						<li><a href="@if(request()->route()->getName()=='recommend_list') javascript:; @else {{route('recommend_list')}} @endif">推荐数据</a></li>
						<li><a href="@if(request()->route()->getName()=='finance_list') javascript:; @else {{route('finance_list')}} @endif">财务数据</a></li>
						<li><a href="@if(request()->route()->getName()=='ranking1') javascript:; @else {{route('ranking1')}} @endif">排行榜</a></li>
					</ul>
				</li>
			@endif
			@if(Auth::user()->type==1)
				<li class="@if(request()->route()->getPrefix()=='user/hr') active @endif">
					<a href="@if(request()->route()->getName()=='hr_person') javascript:; @else {{route('hr_person')}} @endif">人事管理</a>
					<ul class="has-dropdown">
						<li><a href="@if(request()->route()->getName()=='hr_person') javascript:; @else {{route('hr_person')}} @endif">人员信息</a></li>
						<li><a href="@if(request()->route()->getName()=='hr_salary') javascript:; @else {{route('hr_salary')}} @endif">薪酬管理</a></li>
						<li><a href="@if(request()->route()->getName()=='hr_notice') javascript:; @else {{route('hr_notice')}} @endif">公告管理</a></li>
						<li><a href="@if(request()->route()->getName()=='hr_knowledge') javascript:; @else {{route('hr_knowledge')}} @endif">知识分享</a></li>
					</ul>
				</li>
			@endif
			@if(Auth::user()->hasAnyRole(['admin']))
				<li class="@if(request()->route()->getPrefix()=='user/set') active @endif">
					<a href="@if(request()->route()->getName()=='company_info') javascript:; @else {{route('company_info')}} @endif">设置</a>
					<ul class="has-dropdown">
						<li><a href="@if(request()->route()->getName()=='company_info') javascript:; @else {{route('company_info')}} @endif">基本设置</a></li>
						<li><a href="javascript:;">字典配置</a></li>
					</ul>
				</li>
			@endif
		</ul>
		<ul class="rt_nav">
			<li>
				{{--<a class="user_avatar" href="javascript:;"><img src="{{ asset('images/logo.png') }}" alt="用户头像"></a>--}}
				@if(date("H")<11)
					早上好!
				@elseif(date("H")<13)
					中午好！
				@elseif(date("H")<17)
					下午好！
				@else
					晚上好！
				@endif
				<a href="javascript:;">{{Auth::user()->username}}</a>
			</li>
			<li>
				<a href="{{route('logout')}}">退出账号</a>
			</li>
		</ul>
	</div>
</nav>0